﻿using System.Web;
using System.Web.Optimization;

namespace thousandClear
{
    public class BundleConfig
    {
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate*"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/respond.js"));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/site.css"));


            // jquery
            bundles.Add(new ScriptBundle("~/jsbundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"
            ));

            // frozenui
            bundles.Add(new StyleBundle("~/cssbundles/frozenui").Include(
                "~/Statics/Venders/frozenui-1.3.0/dist/css/frozen.css"
                ));

            bundles.Add(new ScriptBundle("~/jsbundles/frozenui").Include(
                "~/Statics/Venders/frozenui-1.3.0/dist/js/frozen.js"
                ));

            // zepto
            bundles.Add(new ScriptBundle("~/jsbundles/zepto").Include(
                "~/Statics/Venders/frozenui-1.3.0/dlist/lib/zepto.min.js"
                ));

            //mobiscroll
            bundles.Add(new StyleBundle("~/cssbundles/mobiscroll").Include(
                "~/Statics/Venders/mobiscroll-2.17.1/css/mobiscroll.custom-2.17.0.min.css"
                ));

            bundles.Add(new ScriptBundle("~/jsbundles/mobiscroll").Include(
                "~/Statics/Venders/mobiscroll-2.17.1/js/mobiscroll.custom-2.17.0.min.js"
                ));

            //artdialog
            bundles.Add(new StyleBundle("~/cssbundles/artdialog").Include(
                "~/Statics/Venders/artDialog-6.0.4/css/ui-dialog.css"
                ));

            bundles.Add(new ScriptBundle("~/jsbundles/artdialog").Include(
                "~/Statics/Venders/artDialog-6.0.4/dist/dialog-min.js"
                ));

            //spinkit
            bundles.Add(new StyleBundle("~/cssbundles/spinkit-wave").Include(
                "~/Statics/Venders/SpinKit/css/spinkit-wave.css"
                ));

            //sweetalert
            bundles.Add(new StyleBundle("~/cssbundles/sweetalert").Include(
                "~/Statics/Venders/sweetalert/dist/sweetalert.css"
                ));

            bundles.Add(new ScriptBundle("~/jsbundles/sweetalert").Include(
                "~/Statics/Venders/sweetalert/dist/sweetalert.min.js"
                ));


            //----------------------------- Mobules -----------------------------
            //订单详情
            //shop/order
            bundles.Add(new StyleBundle("~/cssbundles/shop/order").Include(
               "~/Statics/Venders/frozenui-1.3.0/dist/css/frozen.css",
                "~/Statics/Venders/sweetalert/dist/sweetalert.css"
               ));
            bundles.Add(new ScriptBundle("~/jsbundles/shop/order").Include(
                "~/Scripts/jquery-{version}.js",
                "~/Statics/Venders/frozenui-1.3.0/dist/lib/zepto.min.js",
                "~/Statics/Venders/vuejs-1.0.8/dist/vue.min.js",
                "~/Statics/Venders/frozenui-1.3.0/dist/js/frozen.js",
                "~/Statics/Venders/sweetalert/dist/sweetalert.min.js"
                ));

            //consumer/subscribe
            bundles.Add(new StyleBundle("~/cssbundles/consumer/subscribe").Include(
                "~/Statics/Venders/sweetalert/dist/sweetalert.css",          
                "~/Statics/css/Main.css"
                ));
            //consumer/address
            bundles.Add(new StyleBundle("~/cssbundles/consumer/address").Include(
               "~/Statics/Venders/frozenui-1.3.0/dist/css/frozen.css",
                "~/Statics/Venders/mobiscroll-2.17.1/css/mobiscroll.custom-2.17.0.min.css",
                "~/Statics/Venders/sweetalert/dist/sweetalert.css",
                "~/Statics/Venders/SpinKit/css/spinkit-wave.css"
            ));
            //consumer/List
            bundles.Add(new StyleBundle("~/cssbundles/consumer/list").Include(
                "~/Statics/css/Main.css",
                "~/Statics/Venders/mobiscroll-2.17.1/css/mobiscroll.custom-2.17.0.min.css"
           ));
            bundles.Add(new ScriptBundle("~/jsbundles/consumer/subscribe").Include(
              "~/Statics/Venders/frozenui-1.3.0/dist/lib/zepto.min.js",
              "~/Scripts/jquery-{version}.js",
              "~/Statics/Venders/sweetalert/dist/sweetalert.min.js",
              "~/Statics/Venders/mobiscroll-2.17.1/js/mobiscroll.custom-2.17.0.min.js",
              "~/Statics/Venders/vuejs-1.0.8/dist/vue.min.js",
              "~/Statics/Venders/moment-2.10.6/min/moment.min.js",
              "~/Statics/Venders/frozenui-1.3.0/dist/js/frozen.js"
              ));

            //后台登陆
            //admin/user/login
            bundles.Add(new StyleBundle("~/cssbundles/admin/user/login").Include(
                "~/Statics/Venders/AmazeUI-2.4.2/assets/css/amazeui.min.css",
                "~/Statics/Venders/AmazeUI-2.4.2/assets/css/admin.css",
                "~/Statics/Venders/AmazeUI-2.4.2/assets/css/app.css"
                ));
            bundles.Add(new ScriptBundle("~/jsbundles/admin/user/login").Include(
                "~/Scripts/jquery-{version}.js",
                "~/Statics/Venders/AmazeUI-2.4.2/assets/js/amazeui.min.js",
                "~/Statics/Venders/AmazeUI-2.4.2/assets/js/app.js"
                ));

            //后台首页
            //admin/main
            bundles.Add(new StyleBundle("~/cssbundles/admin").Include(
                "~/Statics/Venders/AmazeUI-2.4.2/assets/css/amazeui.min.css",
                "~/Statics/Venders/AmazeUI-2.4.2/assets/css/admin.css",
                "~/Statics/Venders/AmazeUI-2.4.2/assets/css/app.css"
                ));
            bundles.Add(new ScriptBundle("~/jsbundles/admin").Include(
                "~/Scripts/jquery-{version}.js",
                "~/Statics/Venders/AmazeUI-2.4.2/assets/js/amazeui.min.js",
                "~/Statics/Venders/vuejs-1.0.8/dist/vue.min.js"
                ));

            //----------------------------- Mobules -----------------------------
        }
    }
}
